Package slides.deleteslide

Source Code of slides.deleteslide.ApacheDeleteSlides

package slides.deleteslide;

import java.io.FileInputStream;
import java.io.FileOutputStream;

import org.apache.poi.xslf.usermodel.XMLSlideShow;

public class ApacheDeleteSlides
{
  public static void main(String[] args)throws Exception
  {
    XMLSlideShow ppt = new XMLSlideShow(new FileInputStream("data/presentation.pptx"));
   
    ppt.removeSlide(0); // 0-based index of a slide to be removed
   
    FileOutputStream out = new FileOutputStream("data/DeleteSlide_Apache.ppt");
    ppt.write(out);
    out.close();
  }
}
TOP

Related Classes of slides.deleteslide.ApacheDeleteSlides

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.